<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>社交网站 - 多样式注册页面</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    /* 基础样式 */
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      transition: all 0.3s ease;
    }
    
    .container {
      max-width: 400px;
      margin: 0 auto;
      padding: 0 15px;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    
    /* 切换控制器 */
    .style-switcher {
      position: fixed;
      top: 15px;
      right: 15px;
      z-index: 1000;
      background-color: rgba(255,255,255,0.9);
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      padding: 10px;
    }
    
    .switch-label {
      font-size: 13px;
      margin-bottom: 8px;
      display: block;
      font-weight: 500;
    }
    
    .style-options {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    
    .style-btn {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      border: 2px solid transparent;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .style-btn.active {
      border-color: #0d6efd;
      transform: scale(1.1);
    }
    
    /* 注册卡片 */
    .register-card {
      background-color: white;
      border-radius: 16px;
      padding: 30px 25px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
      margin: 20px 0;
      transition: all 0.3s;
    }
    
    .logo {
      text-align: center;
      margin-bottom: 25px;
    }
    
    .logo-icon {
      font-size: 40px;
      margin-bottom: 10px;
      transition: all 0.3s;
    }
    
    .logo-text {
      font-size: 24px;
      font-weight: 700;
      transition: all 0.3s;
    }
    
    .card-title {
      font-size: 22px;
      font-weight: 600;
      text-align: center;
      margin-bottom: 25px;
      transition: all 0.3s;
    }
    
    /* 表单样式 */
    .form-group {
      margin-bottom: 18px;
    }
    
    .form-label {
      display: block;
      margin-bottom: 6px;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.3s;
    }
    
    .form-control {
      width: 100%;
      padding: 12px 15px;
      border-radius: 8px;
      border: 1px solid #ced4da;
      font-size: 15px;
      transition: all 0.3s;
      background-color: #f8fafc;
    }
    
    .form-control:focus {
      outline: none;
      border-width: 2px;
      box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    }
    
    .form-help {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 25px;
    }
    
    .form-check {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    
    .form-check-label {
      font-size: 13px;
      transition: all 0.3s;
    }
    
    .form-link {
      font-size: 13px;
      text-decoration: none;
      transition: all 0.3s;
    }
    
    .btn {
      width: 100%;
      padding: 13px;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 500;
      border: none;
      cursor: pointer;
      transition: all 0.3s;
    }
    
    .btn-primary {
      background-color: #0d6efd;
      color: white;
      margin-bottom: 12px;
    }
    
    .btn-secondary {
      background-color: #f1f5f9;
      color: #334155;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    
    .divider {
      display: flex;
      align-items: center;
      gap: 15px;
      margin: 20px 0;
    }
    
    .divider::before, .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background-color: #e2e8f0;
      transition: all 0.3s;
    }
    
    .divider-text {
      font-size: 13px;
      transition: all 0.3s;
    }
    
    .footer-text {
      text-align: center;
      margin-top: 25px;
      font-size: 14px;
      transition: all 0.3s;
    }
    
    .footer-link {
      font-weight: 500;
      text-decoration: none;
      transition: all 0.3s;
    }
    
    /* 提示框 */
    .toast {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0,0,0,0.8);
      color: white;
      border-radius: 8px;
      padding: 10px 15px;
      font-size: 14px;
      z-index: 10000;
      display: none;
    }
    
    /* 样式1 - 经典蓝 */
    .style-1 {
      background-color: #f1f5f9;
    }
    
    .style-1 .form-control:focus {
      border-color: #0d6efd;
    }
    
    .style-1 .logo-icon,
    .style-1 .logo-text,
    .style-1 .card-title {
      color: #0d6efd;
    }
    
    .style-1 .form-link,
    .style-1 .footer-link {
      color: #0d6efd;
    }
    
    .style-1 .style-btn:nth-child(1) {
      background-color: #0d6efd;
    }
    
    /* 样式2 - 活力橙 */
    .style-2 {
      background-color: #fff7ed;
    }
    
    .style-2 .register-card {
      box-shadow: 0 10px 30px rgba(249, 115, 22, 0.1);
    }
    
    .style-2 .form-control {
      background-color: #fff7ed;
      border-color: #fed7aa;
    }
    
    .style-2 .form-control:focus {
      border-color: #ea580c;
      box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    }
    
    .style-2 .logo-icon,
    .style-2 .logo-text,
    .style-2 .card-title {
      color: #ea580c;
    }
    
    .style-2 .btn-primary {
      background-color: #ea580c;
    }
    
    .style-2 .btn-secondary {
      background-color: #fff7ed;
      color: #c2410c;
      border: 1px solid #fed7aa;
    }
    
    .style-2 .form-link,
    .style-2 .footer-link {
      color: #ea580c;
    }
    
    .style-2 .divider::before, 
    .style-2 .divider::after {
      background-color: #fed7aa;
    }
    
    .style-2 .style-btn:nth-child(2) {
      background-color: #ea580c;
    }
    
    /* 样式3 - 森林绿 */
    .style-3 {
      background-color: #f0fdf4;
    }
    
    .style-3 .register-card {
      box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
    }
    
    .style-3 .form-control {
      background-color: #f0fdf4;
      border-color: #a7f3d0;
    }
    
    .style-3 .form-control:focus {
      border-color: #15803d;
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    }
    
    .style-3 .logo-icon,
    .style-3 .logo-text,
    .style-3 .card-title {
      color: #15803d;
    }
    
    .style-3 .btn-primary {
      background-color: #15803d;
    }
    
    .style-3 .btn-secondary {
      background-color: #f0fdf4;
      color: #059669;
      border: 1px solid #a7f3d0;
    }
    
    .style-3 .form-link,
    .style-3 .footer-link {
      color: #15803d;
    }
    
    .style-3 .divider::before, 
    .style-3 .divider::after {
      background-color: #a7f3d0;
    }
    
    .style-3 .style-btn:nth-child(3) {
      background-color: #15803d;
    }
    
    /* 样式4 - 暗黑系 */
    .style-4 {
      background-color: #0f172a;
    }
    
    .style-4 .register-card {
      background-color: #1e293b;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .style-4 .form-control {
      background-color: #0f172a;
      border-color: #334155;
      color: white;
    }
    
    .style-4 .form-control:focus {
      border-color: #60a5fa;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }
    
    .style-4 .logo-icon,
    .style-4 .logo-text,
    .style-4 .card-title,
    .style-4 .form-label,
    .style-4 .form-check-label,
    .style-4 .divider-text,
    .style-4 .footer-text {
      color: white;
    }
    
    .style-4 .btn-primary {
      background-color: #3b82f6;
    }
    
    .style-4 .btn-secondary {
      background-color: #0f172a;
      color: #e2e8f0;
      border: 1px solid #334155;
    }
    
    .style-4 .form-link,
    .style-4 .footer-link {
      color: #93c5fd;
    }
    
    .style-4 .divider::before, 
    .style-4 .divider::after {
      background-color: #334155;
    }
    
    .style-4 .style-switcher {
      background-color: rgba(30, 41, 59, 0.9);
    }
    
    .style-4 .style-switcher .switch-label {
      color: white;
    }
    
    .style-4 .style-btn:nth-child(4) {
      background-color: #1e293b;
      border: 1px solid #60a5fa;
    }
    
    /* 样式5 - 极简风 */
    .style-5 {
      background-color: #ffffff;
    }
    
    .style-5 .register-card {
      box-shadow: none;
      border: 1px solid #e2e8f0;
    }
    
    .style-5 .form-control {
      background-color: white;
      border-color: #e2e8f0;
    }
    
    .style-5 .form-control:focus {
      border-color: #64748b;
      box-shadow: none;
    }
    
    .style-5 .logo-icon,
    .style-5 .logo-text,
    .style-5 .card-title {
      color: #1e293b;
    }
    
    .style-5 .btn-primary {
      background-color: #1e293b;
    }
    
    .style-5 .btn-secondary {
      background-color: white;
      color: #64748b;
      border: 1px solid #e2e8f0;
    }
    
    .style-5 .form-link,
    .style-5 .footer-link {
      color: #64748b;
    }
    
    .style-5 .style-btn:nth-child(5) {
      background-color: #e2e8f0;
    }
  </style>
</head>
<body class="style-1">
  <!-- 样式切换器 -->
  <div class="style-switcher">
    <span class="switch-label">选择样式</span>
    <div class="style-options">
      <button class="style-btn active" data-style="1" title="经典蓝"></button>
      <button class="style-btn" data-style="2" title="活力橙"></button>
      <button class="style-btn" data-style="3" title="森林绿"></button>
      <button class="style-btn" data-style="4" title="暗黑系"></button>
      <button class="style-btn" data-style="5" title="极简风"></button>
    </div>
  </div>
  
  <!-- 提示框 -->
  <div class="toast" id="toast">操作成功</div>
  
  <div class="container">
    <div class="register-card">
      <div class="logo">
        <div class="logo-icon">
          <i class="fa fa-connectdevelop"></i>
        </div>
        <div class="logo-text">社交圈</div>
      </div>
      
      <h2 class="card-title">创建新账户</h2>
      
      <form id="registerForm">
        <div class="form-group">
          <label for="username" class="form-label">用户名</label>
          <input type="text" id="username" class="form-control" placeholder="请输入用户名" required>
        </div>
        
        <div class="form-group">
          <label for="email" class="form-label">邮箱</label>
          <input type="email" id="email" class="form-control" placeholder="请输入邮箱地址" required>
        </div>
        
        <div class="form-group">
          <label for="password" class="form-label">密码</label>
          <input type="password" id="password" class="form-control" placeholder="请设置密码" required>
        </div>
        
        <div class="form-help">
          <label class="form-check">
            <input type="checkbox" class="form-check-input" required>
            <span class="form-check-label">同意服务条款</span>
          </label>
          <a href="#" class="form-link">隐私政策</a>
        </div>
        
        <button type="submit" class="btn btn-primary">注册账号</button>
        
        <div class="divider">
          <span class="divider-text">或使用以下方式注册</span>
        </div>
        
        <button type="button" class="btn btn-secondary">
          <i class="fa fa-weixin"></i> 微信登录
        </button>
        <button type="button" class="btn btn-secondary">
          <i class="fa fa-qq"></i> QQ登录
        </button>
        
        <p class="footer-text">
          已有账号？<a href="#" class="footer-link">立即登录</a>
        </p>
      </form>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 获取元素
    const styleBtns = document.querySelectorAll('.style-btn');
    const registerForm = document.getElementById('registerForm');
    const toast = document.getElementById('toast');
    const socialBtns = document.querySelectorAll('.btn-secondary');
    const footerLink = document.querySelector('.footer-link');
    const formLinks = document.querySelectorAll('.form-link');
    
    // 切换样式
    styleBtns.forEach(btn => {
      btn.addEventListener('click', function() {
        // 移除所有活跃状态
        styleBtns.forEach(b => b.classList.remove('active'));
        document.body.className = '';
        
        // 添加当前样式
        this.classList.add('active');
        const style = this.getAttribute('data-style');
        document.body.classList.add(`style-${style}`);
        
        showToast(`已切换到${this.title}样式`);
      });
    });
    
    // 表单提交
    registerForm.addEventListener('submit', function(e) {
      e.preventDefault();
      
      const username = document.getElementById('username').value;
      showToast(`注册成功！欢迎您，${username}`);
      
      // 重置表单
      registerForm.reset();
    });
    
    // 社交登录按钮
    socialBtns.forEach(btn => {
      btn.addEventListener('click', function() {
        const platform = this.querySelector('i').classList.contains('fa-weixin') ? '微信' : 'QQ';
        showToast(`即将跳转到${platform}登录`);
      });
    });
    
    // 链接点击事件
    footerLink.addEventListener('click', function(e) {
      e.preventDefault();
      showToast('跳转到登录页面');
    });
    
    formLinks.forEach(link => {
      link.addEventListener('click', function(e) {
        e.preventDefault();
        showToast(`查看${this.textContent}`);
      });
    });
    
    // 显示提示
    function showToast(message) {
      toast.textContent = message;
      toast.style.display = 'block';
      
      setTimeout(() => {
        toast.style.display = 'none';
      }, 2000);
    }
  </script>
</body>
</html>
